package com.medical.sys.service;

import com.medical.common.paginator.domain.PageList;
import com.medical.sys.model.User;

import java.util.List;

/**
 * Created by Administrator on 2016/10/18.
 */
public interface UserService {
    public List<User> searchUsers(String query, Integer page, Integer pageSize, String sortColumn, String sortDir);
    public List<User> findUsersByOrgId(String orgId, Integer page, Integer pageSize, String sortColumn, String sortDir);
    public void saveUser(User user);
    public void updateUser(User user);
    public void deleteUser(String userId);
    public void deleteUser(String userId, Boolean administrator);
    public List<User> getUsersByRoleId(String roleId);
    public List<User> getUsers();
    public List<User> getUsers(Boolean administrator);
    public User selectByPrimaryKey(String id);
    List<User> selectByOrgId(String orgId);
}
